package springboot_select_insert.dao;

import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import springboot_select_insert.entity.ChaEntity;
@Mapper
public interface ChaDao {
	@Select("SELECT id,name,sex,birthday,address from test")
	List<ChaEntity> selectdao();//查询数据
	@Insert("INSERT into test (name,sex,birthday,address) values (#{name},#{sex},#{birthday},#{address})")
	void insertdao(ChaEntity chaEntity);//插入数据
}
